#set($layout = "/layout/layout.html")  
#parse("/common/common.html")
#dictCode($dictJson)
##grid
<div class="page-content">
<div class="page-content-area">
	    <div class="col-xs-12">
	       #if($record.inOutStatus == "ApplyFail")
			<div class="widget-box widget-color-blue">
				<div class="widget-body ud-grid-widget">
					<div class="widget-toolbox">
						<div class="btn-toolbar">
							<button id="editBtn" class="btn btn-default" menuid=""><i class="fa"></i>保存</button>
						</div>
					</div>
				</div>
			</div>
			#end
		</div>
		
		<div class="row">
			<div class="col-xs-12 label label-lg label-success arrowed-in arrowed-right"><b>基本信息</b></div>
			<form id="mainForm" action="#" class="form-horizontal">
			<input id="inOutSerializes" name="inOutSerializes" type="hidden" value="" />
			<input id="inOuts" name="inOuts" type="hidden" value="" />
			<input id="inOuts" name="id" type="hidden" value="$!{record.id}" />
			<input id="tenantId"  type="hidden" value="$!{record.tenantId}" />
			<div style="padding-top: 80px;">
				 <div class="col-xs-4">
					<div class="form-group">
						<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="inOutNo"><span class="form-require">*</span>入库单号</label>
						<div  class="col-xs-10 col-sm-8" >
							<input class="form-control required" type="text" id="inOutNo" name="inOutNo" placeholder="入库单号" value="$!{record.inOutNo}" readonly="readonly"/>
						</div>
					</div>
				</div>
				
				<div class="col-xs-4">
					<div class="form-group">
						<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="inOutType"><span class="form-require">*</span>入库类型</label>
						<div  class="col-xs-10 col-sm-8" >
							<select class="form-control required" id="inOutType" name="inOutType"  required="required">
						    #select($dicts.InType $record.inOutType)
						    </select>
						</div>
					</div>
				</div>
				
				<div class="col-xs-4">
					<div class="form-group">
						<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="warchouseId"><span class="form-require">*</span>入库仓库</label>
						<div  class="col-xs-10 col-sm-8" >
							<select class="form-control required" id="warchouseId" name="warchouseId">
							<option value="">请选择</option>
						    #select($dicts.Warehouse $record.warchouseId)
						    </select>
						</div>
					</div>
				</div>
				
				<div style="height: 0px; width: 0px;clear: both;">&nbsp;</div>
				 <div class="col-xs-4">
					<div class="form-group">
						<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="sourceId"><span class="form-require">*</span>供应商</label>
						<div  class="col-xs-10 col-sm-8" >
						    <span class="col-sm-10">
						       	<input  class="form-control required" type="text" id="sourceName"  placeholder="供应商" value="$!{supplierName}" readonly="readonly"/>
						        <input  type="hidden" id="sourceId" name="sourceId" value="$!{record.sourceId}"/>
						    </span>
							 <span class="col-sm-2">
	                          <button class="btn btn-default" type="button" id="supplierSelectBtn">选择</button>
	                       </span>
						</div>
					</div>
				</div>
			</div>
			</form>
			<!--物料信息  -->
			<div class="col-xs-12 label label-lg label-success arrowed-in arrowed-right"><b>物料信息</b></div>
			<div class="col-xs-12">
				<div class="widget-box widget-color-blue">
					<div class="widget-body ud-grid-widget">
					     <div class="widget-toolbox">
					      #if($record.inOutStatus == "ApplyFail")
							<div class="btn-toolbar">
							  <button id="addMaterialBtn" class="btn btn-default" menuid=""><i class="fa"></i>添加</button>
							  <button id="deleteMaterialBtn" class="btn btn-default" menuid=""><i class="fa"></i>删除</button>
							</div>
							#end
					    </div>
						<table id="mainGrid" class="table table-striped m-b-none"></table>
						<div id="mainGridPager"></div>
					</div>
				</div>
			</div>
			<!--物料信息  -->
			<!--资产信息  -->
			<div class="col-xs-12 label label-lg label-success arrowed-in arrowed-right"><b>资产信息</b></div>
			<div class="col-xs-12">
				<div class="widget-box widget-color-blue">
					<div class="widget-body ud-grid-widget">
					    #if($record.inOutStatus == "ApplyFail")
						    <div class="widget-toolbox">
								<div class="btn-toolbar">
								  <button id="addKeyBtn" class="btn btn-default" menuid=""><i class="fa"></i>添加</button>
								  <button id="deleteKeylBtn" class="btn btn-default" menuid=""><i class="fa"></i>删除</button>
								</div>
						    </div>
						   #end 
						<table id="childGrid" class="table table-striped m-b-none"></table>
						<div id="childGridPager"></div>
					</div>
				</div>
			</div>
			<!--资产信息  -->
		</div>
	</div>
</div>
		
<script src="${contextPath}/view/depot/in/js/activitiEdit.js"></script>